package ewa

import (
     "fmt"
     "net/http"
     "io/ioutil"
     "net/url"
)

func HttpClientPassOk(host string, user string, pass string) string {
    _url:=host+"/passok"
    l := fmt.Sprintf("Intrequs/> check passok from %s", _url); Log(l)
    resp, err := http.PostForm(_url,
        url.Values{"Username": {user}, "Password": {pass}})
 
    if err != nil {
        // handle error
    }
 
    defer resp.Body.Close()
    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        // handle error
    }
 
    fmt.Printf("%s\n",string(body))
    return string(body)
}